package mysql

import "gorm.io/gorm"

type Comment struct {
	gorm.Model
	UserId  int64 `gorm:"type:int(11);not null;comment:用户id"`
	GoodsId int64 `gorm:"type:int(11);not null;comment:商品id"`
}

func (c *Comment) CommentAdd(db *gorm.DB) error {
	return db.Debug().Create(c).Error
}
